import request from "@/util/request";
import {post} from "axios";

export default {
    // 查询所有
    findAllStudents(){
        return request({
            url:"/student/list",
            method:"get"
        })
    },
    //分页查询
    findByPage(page,pageSize){
        return request({
            url:`/student/findByPage/${page}/${pageSize}`,
            method:"get"
        })
    },
    //分页+条件查询
    search(page,pageSize,data){
        return request({
            url:`/student/search/${page}/${pageSize}`,
            method:"post",
            data
        })
    }
}
